package com.gc.server;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

@SpringBootApplication(scanBasePackages = {"com.yf","com.gc.server","com.yf.tz","com.dx.wx"})
@MapperScan(basePackages = "com.yf.dao,com.gc.server.dao,com.yf.tz.dao")
public class ServerApplication extends SpringBootServletInitializer {
	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
		return builder.sources(ServerApplication.class);
	}
	public static void main(String[] args) {
		SpringApplication.run(ServerApplication.class, args);
	}

}
